core: pack: Keep loose objects which are referenced externally
authorColin Walters <walters@verbum.org>
Thu, 10 May 2012 03:20:36 +0000 (23:20 -0400)
committerColin Walters <walters@verbum.org>
Thu, 10 May 2012 03:20:36 +0000 (23:20 -0400)
commitf33a2f9a084f77ab58a5486723b97d06e1513912
tree4531e10bcecbf232ccd0f1e4aab5d76c9395cb47
parentd8b97316d900c19740d167ea3a80e422813a7ac3
core: pack: Keep loose objects which are referenced externally

By default, don't delete loose objects which have hard links.  This
has the natural semantics that if you delete all the checkouts, you
probably want it packed.

Conversely, if it has a hard link, we do want further checkouts to
share storage, even if we pack in between them.
src/ostree/ot-builtin-pack.c